package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Account;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccountMapper {
    List<Account> getAccountList();
    Account getAccountByUserid (String userId);
    void newAccount (Account account);
    void newSignon (Account account);
    void newProfile (Account account);
    List<Account> searchAccountList(String keyword);
    void updateAccount (Account account);
    void updateSignon (Account account);
    void updateSignonNoPsw (Account account);
    void updateProfile (Account account);
    void updateOrders (Account account);
    void deleteAccount (String userId);
    void deleteSignon (String userId);
    void deleteProfile (String userId);

}
